import json

tianQiJson = open("D:\\天气预报json.txt", "r", encoding="utf-8")
tianQiStr = tianQiJson.read()
tianQiObj = json.loads(tianQiStr)
result = tianQiObj['result']
city = result['city']
futures = result['future']
print("{}未来5天的天气情况如下：\n".format(city))
for future in futures:
    print("日期:{} 天气:{} 温度:{} 风向:{}".format(future['date'], future['temperature'], future['weather'], future['direct']))